package com.ruoze.bdp.function;

import com.ruoze.bdp.entity.TableStructVo;
import com.ruoze.bdp.enums.DbType;

import java.util.List;
import java.util.Map;

public interface DataSourceFunction {

    boolean connectTest(String info);

    List<String> getMetaDatabases(String info);

    List<String> getMetaTables(String info, String database);

    List<Map<String, String>> getMetaColumns(String info, String database, String table);

    boolean createDatabase(String info, String name);

    DbType getSourceType();

    boolean createTable(String info, TableStructVo tableVo);
}
